﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace rlab.presentation
{
    public partial class EditorForm : Form
    {
        public EditorForm()
        {
            InitializeComponent();
        }

        public string EditorText
        {
            get
            {
                return editorTxtB.Text;
            }
            set
            {
                editorTxtB.ColorAll = true;
                editorTxtB.Text = value;
                editorTxtB.ColorAll = false;                
            }
        }

        public void SaveFile( string fileName )
        {
            editorTxtB.SaveFile( fileName, RichTextBoxStreamType.PlainText );
        }
    }
}
